package io.framework.modules.urlType.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.framework.common.service.impl.CrudServiceImpl;
import io.framework.modules.urlType.dao.SysUrlTypeDao;
import io.framework.modules.urlType.dto.SysUrlTypeDTO;
import io.framework.modules.urlType.entity.SysUrlTypeEntity;
import io.framework.modules.urlType.service.SysUrlTypeService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 连接类别名称
 *
 * @author Gujq email
 * @since 1.0.0 2020-09-15
 */
@Service
public class SysUrlTypeServiceImpl extends CrudServiceImpl<SysUrlTypeDao, SysUrlTypeEntity, SysUrlTypeDTO> implements SysUrlTypeService {

    @Override
    public QueryWrapper<SysUrlTypeEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<SysUrlTypeEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}